package com.kehutong.crm.enums;

import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;

/**
 * 需求预测类型枚举
 *
 * @author wupengfei
 */
public enum DemandForecastTypeEnum {

    /**
     * 购房需求
     */
    house("house", "PurchaseWillingScore", "购房"),

    /**
     * 健康
     */
    health("health", "InterestHealthLevel", "健康"),

    /**
     * 旅游
     */
    travel("travel", "ForecastTravelLevel", "旅游"),

    /**
     * 理财
     */
    wealth("wealth", "InterestWealthLevel", "理财"),

    /**
     * 教育
     */
    education("education", "InterestEducationYouthLevel", "教育"),

    ;

    private final String type;
    private final String vendorType;
    private final String name;
    private static final Map<String, DemandForecastTypeEnum> enumMap = new HashMap<>();

    static {
        EnumSet<DemandForecastTypeEnum> enumSet = EnumSet.allOf(DemandForecastTypeEnum.class);
        for (DemandForecastTypeEnum each : enumSet) {
            enumMap.put(each.getType(), each);
        }
    }

    DemandForecastTypeEnum(String type, String vendorType, String name) {
        this.type = type;
        this.vendorType = vendorType;
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public String getVendorType() {
        return vendorType;
    }

    public String getName() {
        return name;
    }

    public static Map<String, DemandForecastTypeEnum> getEnumMap() {
        return enumMap;
    }
}
